/*
 * VHRpcResultReceiver.java
 * Created on 4 avr. 2009
 *
 * Glacéo Internet Platform
 * http://sourceforge.net/projects/chm/
 *
 * Copyright (c) 2005-2009, Jens and Jan Janke (VirtualHockey Project)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 */

package com.hockeo.vhweb.client.rpc;

/**
 * This interface needs to be implemented by all classes that should receive results from
 * an RPC call.
 *
 * @param <T> the class of the object that is expected as result
 * @version $Id$
 * @author jjanke
 */
public interface VHRpcResultReceiver<T>
{
  /**
   * Sets the result data coming from an RPC.
   *
   * @param result the RPC result data
   * @param strPurpose the purpose of the data (useful if a class receives data for
   *          different purposes), may be <code>null</code>
   */
  public void setRpcData( T result, String strPurpose );
}
